package aop04;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Auther:ws@itany.com
 * Date:20-9-15 上午10:26
 * Version:1.0
 * Description:
 */

public class Test {
    public static void main(String[] args){
        ApplicationContext ac = new ClassPathXmlApplicationContext("aop04/spring.xml");
        SomeService someService = (SomeService) ac.getBean("someService");

        try {
            someService.doSome();
        } catch (SomeException e) {
            e.printStackTrace();
        }
        System.out.print("---------------");
        someService.doOther("doOther");
    }


}
